/**
* * NearShop
 * CountAction.java
 * com.android.nearshop.io.protocol.in
 * 
 */
package com.android.nearshop.io.protocol.in;

import com.android.nearshop.io.protocol.out.ShakeCount;

import android.util.Log;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-8-11
 * @see : 根据参数，获得系统主要参数的统计数量。
 * 应用场景 摇动的主屏有总摇动数量的统计。
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class CountAction extends SoapAction<ShakeCount>
{

    public CountAction()
    {
        super(ACTION_TYPE.ACTION_SYSTEM,"countSystem");
        addJsonParam("busCode","shake");
    }
 
    /* (non-Javadoc)
     * @see com.android.nearshop.io.protocol.in.SoapAction#parseJson(java.lang.String)
     */
    @Override
    protected ShakeCount parseJson(String response) throws Exception
    {
        Log.d(getMethod(), getMethod() + "response: \n " + response);
        ShakeCount res = new ShakeCount();
        res.parseData(response);
        return res;
    }

}
